package com.panshi.mapper;

import com.panshi.pojo.Departement;
import com.panshi.pojo.Employee;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.Collection;
import java.util.HashMap;
import java.util.Map;

@Repository
@Mapper
public interface IEmployeeMapper {
    //增加一个员工
    public void save(Employee employee);

    public void update(Employee employee);

    //查询全部员工
    public Collection<Employee> getAll();

    public Employee getEmployeeById(Integer id);

    public void delete(Integer id);
}
